<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
  <head>
  <style>
.fontdaxiao {
	font-size: 12px;
}

.tableAF {
	
}

.tableAF tr th {
	border: 1px;
	border-color: #EDEDED;
	border-style: solid;
}

.tableAF tr td {
	border: 1px;
	border-top: 0px;
	border-color: #EDEDED;
	border-style: solid;
}

.rowsOne {
	background-color: white;
}

.rowsTwo {
	background-color: #7CC5E5;
}

.rowsThree {
	background-color: #F5F5F5;
}
</style>
<script type="text/javascript">

var str3;
function searchType() {
	var str1="";
	var str2="";
	var types = document.getElementsByName("channeltype");
	var len = types.length;
	for(var i=0;i<len;i++){
		if(types[i].checked == true){
			str3 = types[i].value.split(",");
			str1 = str1+","+str3[0];
			str2 = str2+","+str3[1];
		}
	}
	parent.$.returnValue = str1.substring(1,str1.length) + "||" + str2.substring(1,str2.length);
}
function trMouseOver(trNum) {
	if (trNum.className != "rowsTwo") {
		trNum.className = "rowsThree";
	}
} 
function trMouseOut(trNum) {
	if (trNum.className != "rowsTwo") {
		trNum.className = "rowsOne";
	}
}


</script>
  
  </head>
  <body>
<div class="pageContent">
	<table id="channelTableABC" width="100%" layoutH="65"
		class="tableAF fontdaxiao" cellpadding="0px" cellspacing="0">
		<thead>
			<tr style="background-image: url('backgroundManager/aoll81.jpg')">
				<th width="10%" align="center"></th>
				<th width="25%" align="center">
					渠道类别编码
				</th>
				<th width="25%" align="center">
					渠道类别名称
				</th>
				<th width="20%" align="center">
					类别说明
				</th>
				<th width="20%" align="center">
					添加日期
				</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.channelTypes}" var="channelType">
			<tr onmouseover="trMouseOver(this)" onmouseout="trMouseOut(this)">
				<td align="center"><input type="checkbox" onclick="searchType()" name="channeltype" value="${channelType.PClassNumber},${channelType.PClassName}" /></td>
				<td align="center">${channelType.PClassNumber }</td>
				<td align="center">${channelType.PClassName }</td>
				<td align="center">${channelType.PClassNote }</td>
				<td align="center">${channelType.PClassAddDate }</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
</body>
</html>